package MicronautTest.ioc;

import io.micronaut.context.annotation.Primary;
import io.micronaut.context.annotation.Secondary;

import javax.inject.Singleton;

@Secondary
@Singleton
public class V6Engine implements Engine {

    private int mCylinders = 6;

    @Override
    public String start() {
        return "Starting V6";
    }

    @Override
    public int getCylinders() {
        return mCylinders;
    }

    public void setCylinders(int cylinders) {
        mCylinders = cylinders;
    }
}
